package com.changhongit.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.changhongit.dao.LogsDao;
import com.changhongit.entity.Logs;
import com.changhongit.service.LogsService;
import com.changhongit.util.PageView;

@Transactional
@Service("logService")
public class LogsServiceImpl implements LogsService {
	@Autowired
	private LogsDao logsDao;

	public PageView query(PageView pageView, Logs logs) {
		List<Logs> list = logsDao.query(pageView, logs);
		pageView.setRecords(list);
		return pageView;
	}

	public void add(Logs logs) {
		logsDao.add(logs);
	}

	public void delete(String id) {
		logsDao.delete(id);
	}

	public Logs getById(String id) {
		return logsDao.getById(id);
	}

	public void modify(Logs logs) {
		logsDao.modify(logs);
	}

	public List<Logs> findAll(Logs logs) {
		return logsDao.queryAll(logs);
	}

}
